package com.hyts.gateway.bean.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.util.Date;

@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName(value = "GW_ROUTE")
public class GwRoute {

    /**
     * id主键关键字
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 路由主键
     */
    @TableField(value = "route_id")
    private String routeId;

    /**
     * 路由名称
     */
    @TableField(value = "route_name")
    private String routeName;

    /**
     * 路由映射路径
     */
    @TableField(value = "route_url")
    private String routeUrl;

    /**
     * 排序序号
     */
    @TableField(value = "route_order")
    private Integer routeOrder;

    /**
     * 路由介绍
     */
    @TableField(value = "route_desc")
    private String routeDesc;

    /**
     * 断言判断条件
     */
    @TableField(value = "route_predicates")
    private String routePredicates;

    /**
     * 过滤内容
     */
    @TableField(value = "route_filters")
    private String routeFilters;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(value = "create_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    @TableField(value = "create_user")
    private Integer createUser;


    @TableField(value = "update_user")
    private Integer updateUser;

    /**
     * 0正常，1删除
     */
    @TableField(value = "del_flag")
    private Byte delFlag;

    /**
     * 状态
     */
    @TableField(value = "status")
    private Byte status;


    @TableField(value = "tenant_no")
    private String tenantNo;

    
    @TableField(value = "version")
    private Integer version;
}